package org.pearl.oauth2.authorizationserverdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author td
 * @since 2021-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    private String userName;

    private String password;

    private String loginName;

    @ApiModelProperty(value = "性别")
    private Integer gender;

    private String phone;

    private String address;

    @ApiModelProperty(value = "部门-组织ID")
    private Integer organizationId;

    @ApiModelProperty(value = "用户状态-字典吗USER_STATE")
    private Boolean state;

    @ApiModelProperty(value = "邮箱地址")
    private String email;

    @ApiModelProperty(value = "创建者")
    private Integer createUserId;

    private Date modifyDate;

    private Date createDate;

    @ApiModelProperty(value = "注释 ")
    private String remark;


}
